﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Ex1;
using System.Transactions;

namespace Ex1_Client {
    class Program {
        static void Main(string[] args) {
            ChannelFactory<IServico> servico = new ChannelFactory<IServico>("clienteServicoEx1");
            IServico proxy = servico.CreateChannel();
            //using (TransactionScope c = new TransactionScope()) {
                proxy.Transferir(1, 2, 500);
                //proxy.Transferir(1, 1111, 500);
            //}
                Console.WriteLine("Something...");
        }
    }
}
